<?php

namespace Database\Factories\Passengers;

use App\Facades\SnowFlakeFacade;
use App\Models\Passengers\Passenger;
use App\Models\User\User;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<Passenger>
 */
class PassengerFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'user_id'        => User::find(1)->getUserId(),
            'passenger_id'   => SnowFlakeFacade::id(),
            'truename'       => $this->faker->name,
            'identity_type'  => 1,
            'identity_code'  => random_number(18),
            'passenger_type' => 1,
            'mobile'         => $this->faker->phoneNumber,
            'verify_state'   => 1,
            'delete_state'   => 0,
        ];
    }
}
